package com.itlong.cloud.POJO.VO.property;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <desc>
 *      获取电梯楼层映射信息VO
 * </desc>
 *
 * @createDate 2019/03/28
 */
@Data
@NoArgsConstructor
public class PropertyElevatorFloorConfigVO {

    private String logicalFloor;
    private String terminalFloor;
    private String naturalFloor;
    private String floorNum;
    private String detectFloor;
    private String terminalNumIntercom;

    @Override
    public boolean equals(Object o) {
        try {
            if (this == o) {
                return true;
            }
            if (o == null || this.getClass() != o.getClass()) {
                return false;
            }
            PropertyElevatorFloorConfigVO that = (PropertyElevatorFloorConfigVO) o;
            return this.getLogicalFloor().equals(that.getLogicalFloor()) &&
                    this.getTerminalFloor().equals(that.getTerminalFloor()) &&
                    this.getNaturalFloor().equals(that.getNaturalFloor()) &&
                    this.getFloorNum().equals(that.getFloorNum()) &&
                    this.getDetectFloor().equals(that.getDetectFloor()) &&
                    this.getTerminalNumIntercom().equals(that.getTerminalNumIntercom());
        } catch (Exception e) {
            return false;
        }
    }

}
